from django.conf.urls import url

from booktest import views_07GenericAPIView视图类的使用

urlpatterns = [
    url(r'^books/$', views_07GenericAPIView视图类的使用.BookListView.as_view()),
    url(r'^books/(?P<pk>\d+)/$', views_07GenericAPIView视图类的使用.BookDetailView.as_view())
]